// createWebHashHistory 是hash模式就是访问链接带有#
// createWebHistory  是history模式
import {createRouter, createWebHistory} from 'vue-router'

// 引入文件，动态路由
const Home = () => import("../views/home.vue");
const routes = [
    {
        path: "/",
        component: Home,
    },
];

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router